package com.ross.dao;

import com.ross.pojo.SysPermissions;
import com.ross.pojo.SysRoles;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysPermissionsMapper {
    void create(SysPermissions permission);

    void deleteRolePermission(Long permissionId);

    void deletePermission(Long permissionId);

    List<SysPermissions> findAll();

    void update(SysPermissions permission);

    SysPermissions findById(Long id);

    List<SysRoles> findRoleByPermissionId(Long id);

    void deleteAllPermissionsRoles(Long id);

    void correlationRoles(@Param("permissionId") Long permissionId, @Param("roleId") Long roleId);
}